#ifndef MAC_ADDITEM_H
#define MAC_ADDITEM_H

#include <head/g_pch.h>
#include <head/db_helper.h>
#include <head/m_message.h>
#include "m_fhs.h"

namespace Ui {
class Mac_AddItem;
}

const QStringList parts={"营销中心","财务部","人力资源部","研发中心","爱物联事业部","总经办"};
const QStringList devices={"移动设备","办公设备","公司产品","智能设备"};

class Mac_AddItem : public QDialog
{
    Q_OBJECT

public:
    explicit Mac_AddItem(QWidget *parent = nullptr);
    ~Mac_AddItem();

    void updateDepartments();
    bool addItem(const QString &department,
                 const QString &name,
                 const QString &device,
                 const QString &mac_addr);

private slots:
    void on_btn_submit_clicked();

    void on_btn_paste_clicked();

    void on_btn_parse_clicked();

private:
    Ui::Mac_AddItem *ui;

    QString table;
};

#endif // MAC_ADDITEM_H
